<div ng-controller="parametersMngCtrl">
    <h1 class="page-header">参数管理</h1>

    <div class="row">
        <div class="col-xs-6 col-sm-3">
            <button type="button" class="btn btn-primary" ui-sref="index.parametersForm">新增</button>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-6 col-sm-3">
            <div class="form-group">
                <label>参数名</label>
                <input class="form-control" ng-model="search.key"/>
            </div>
        </div>

        <div class="col-xs-6 col-sm-3">
            <div class="form-group">
                <label>参数值</label>
                <input class="form-control" ng-model="search.value"/>
            </div>
        </div>
    </div>

    <div class="row">
        <table class="table table-bordered top5">
            <thead>
            <tr>
                <th>参数名</th>
                <th>参数值</th>
                <th>参数说明</th>
                <th>操作</th>
            </tr>
            </thead>

            <tbody>
            <tr ng-repeat="item in list | filter:search">
                <td ng-bind="item.key"></td>
                <td ng-bind="item.value"></td>
                <td ng-bind="item.mark"></td>
                <td>
                    <a class="btn btn-sm" ui-sref="index.parametersForm({id:item.id})">编辑</a>
                    <a class="btn btn-sm" ng-click="delete(item.id)">删除</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

</div>